<?php
/* @var $model Ad */
?>

<div class="left">
    <div class="title">Post Ads</div>


    <div class="tong-detai">

	<?php
	if ($model instanceof Equipment) {
	    $this->renderPartial('//ad/view/equipment', array(
		'model' => $model
	    ));
	} elseif ($model instanceof Job) {
	    $this->renderPartial('//ad/view/job', array(
		'model' => $model
	    ));
	} elseif ($model instanceof Resume) {
	    $this->renderPartial('//ad/view/resume', array(
		'model' => $model
	    ));
	} else {
	    $this->renderPartial('//ad/view/default', array(
		'model' => $model
	    ));
	}
	?>

    </div><!--tong-detail-->


</div>
<div id="post_id_<?php echo $model->ad_id; ?>" class="abuse-box modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
	<h3 id="myModalLabel">Report abusing</h3>
	for "<?php echo $model->title; ?>"
    </div>
    <div class="modal-body">							
	<select class="select-abusing">
	    <?php foreach ($aStatementAbuse as $statementAbuse) { ?>
    	    <option value="<?php echo $statementAbuse['text'] ?>"><?php echo $statementAbuse['text'] ?></option>
	    <?php } ?>
	</select>							
    </div>
    <div class="modal-footer">
	<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
	<a class="btn btn-primary send-abuse" 
	   user-id="<?php echo user()->id ?>" 
	   post-id="<?php echo $model->ad_id ?>" 
	   link="<?php echo SITE_NAME_URL . 'ad/' . $model->ad_id; ?>"
	   >Send</a>
    </div>
</div>
<div class="right">

    <div class="re-img">


	<ul class="adActions">
	    <li>
		Share this post to:
		<!-- AddThis Button BEGIN -->
		<div class="addthis_toolbox addthis_default_style ">
		    <a class="addthis_button_preferred_1"></a>
		    <a class="addthis_button_preferred_2"></a>
		    <a class="addthis_button_preferred_3"></a>
		    <a class="addthis_button_preferred_4"></a>
		    <a class="addthis_button_compact"></a>
		    <a class="addthis_counter addthis_bubble_style"></a>
		</div>
		<script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
		<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-522014607fe3e32c"></script>
		<!-- AddThis Button END -->
	    </li>
	    <?php
	    /*
	      <li class="getEmbedCode">
	      <a href="#" rel="nofollow">Email this item to a friend</a></li>
	      <li class="discussFB2">
	      <a href="#" rel="nofollow">Share on Facebook</a></li>
	      <li class="discusstw">
	      <a href="#" rel="nofollow">Send to Twitter</a></li>
	     * 
	     */
	    ?>
	    <li class="reportAd">
		<a title="Report" href="#post_id_<?php echo $model->ad_id; ?>" role="button" data-toggle="modal">Report this Posting</a>		

	    </li>
	</ul>

    </div><!--re-img-->

</div>